import java.io.*;

public class D9291 {
    public static void main(String[] args) throws IOException {
        int [] shu = new int[23];
        int i = 0;
        File shuzi = new File("d:\\shuzi.txt");
        FileReader fr = new FileReader(shuzi);
        BufferedReader br = new BufferedReader(fr);
        String s;
        while ((s = br.readLine())!=null){

            shu[i] = Integer.valueOf(s);
            i++;

        }

          int he = 0;
        for (int j = 0; j < shu.length; j++) {
            if (shu[j]%2==0){
                he+=shu[j];
            }
        }
        System.out.println(he);
    }
}
